package com.ch.ms.data.domain;

import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Entity
@Table(name = "chms_server", schema = "chms_new")
@DynamicInsert
@DynamicUpdate
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ChmsServer extends AbstractMaplePersistable<Integer> {
    private static final long serialVersionUID = -8120976191941584202L;
    private String uuid;
    private String name;
    private String host;
    private Integer port;

    @Enumerated(EnumType.STRING)
    private ChmsServerType type;


}
